.class Lcom/example/m6shop/OrderDetailActivity$13;
.super Ljava/lang/Thread;
.source "OrderDetailActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/OrderDetailActivity;->getprint()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/OrderDetailActivity;


# direct methods
.method constructor <init>(Lcom/example/m6shop/OrderDetailActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/OrderDetailActivity$13;->this$0:Lcom/example/m6shop/OrderDetailActivity;

    .line 585
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 10

    .prologue
    .line 587
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 588
    iget-object v7, p0, Lcom/example/m6shop/OrderDetailActivity$13;->this$0:Lcom/example/m6shop/OrderDetailActivity;

    const-string v8, "userInfo"

    .line 589
    const/4 v9, 0x0

    .line 588
    invoke-virtual {v7, v8, v9}, Lcom/example/m6shop/OrderDetailActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 592
    .local v4, "preferences":Landroid/content/SharedPreferences;
    new-instance v7, Ljava/lang/StringBuilder;

    iget-object v8, p0, Lcom/example/m6shop/OrderDetailActivity$13;->this$0:Lcom/example/m6shop/OrderDetailActivity;

    iget-object v8, v8, Lcom/example/m6shop/OrderDetailActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v8}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v8, "/index.php?ctrl=app&action=bluetooth_data&dno="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v8, p0, Lcom/example/m6shop/OrderDetailActivity$13;->this$0:Lcom/example/m6shop/OrderDetailActivity;

    iget-object v8, v8, Lcom/example/m6shop/OrderDetailActivity;->dno:Ljava/lang/String;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "&datatype=json"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 593
    .local v6, "url":Ljava/lang/String;
    sget-object v7, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v8, Ljava/lang/StringBuilder;

    const-string v9, "--->"

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 594
    invoke-static {v6}, Lmyclass/HttpConn;->getStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 597
    .local v5, "str":Ljava/lang/String;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, v5}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 598
    .local v1, "json":Lorg/json/JSONObject;
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 599
    .local v3, "msg":Landroid/os/Message;
    const-string v7, "error"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v8, "true"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_0

    .line 601
    const-string v7, "msg"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 602
    const/4 v7, 0x6

    iput v7, v3, Landroid/os/Message;->arg1:I

    .line 603
    iget-object v7, p0, Lcom/example/m6shop/OrderDetailActivity$13;->this$0:Lcom/example/m6shop/OrderDetailActivity;

    iget-object v7, v7, Lcom/example/m6shop/OrderDetailActivity;->h:Landroid/os/Handler;

    invoke-virtual {v7, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 618
    .end local v1    # "json":Lorg/json/JSONObject;
    .end local v3    # "msg":Landroid/os/Message;
    :goto_0
    return-void

    .line 606
    .restart local v1    # "json":Lorg/json/JSONObject;
    .restart local v3    # "msg":Landroid/os/Message;
    :cond_0
    const-string v7, "msg"

    invoke-virtual {v1, v7}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    .line 607
    .local v2, "json1":Lorg/json/JSONObject;
    iget-object v7, p0, Lcom/example/m6shop/OrderDetailActivity$13;->this$0:Lcom/example/m6shop/OrderDetailActivity;

    const-string v8, "top"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Lcom/example/m6shop/OrderDetailActivity;->access$5(Lcom/example/m6shop/OrderDetailActivity;Ljava/lang/String;)V

    .line 608
    iget-object v7, p0, Lcom/example/m6shop/OrderDetailActivity$13;->this$0:Lcom/example/m6shop/OrderDetailActivity;

    const-string v8, "body"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Lcom/example/m6shop/OrderDetailActivity;->access$6(Lcom/example/m6shop/OrderDetailActivity;Ljava/lang/String;)V

    .line 610
    const/16 v7, 0xa

    iput v7, v3, Landroid/os/Message;->arg1:I

    .line 611
    iget-object v7, p0, Lcom/example/m6shop/OrderDetailActivity$13;->this$0:Lcom/example/m6shop/OrderDetailActivity;

    iget-object v7, v7, Lcom/example/m6shop/OrderDetailActivity;->h:Landroid/os/Handler;

    invoke-virtual {v7, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 612
    .end local v1    # "json":Lorg/json/JSONObject;
    .end local v2    # "json1":Lorg/json/JSONObject;
    .end local v3    # "msg":Landroid/os/Message;
    :catch_0
    move-exception v0

    .line 614
    .local v0, "e":Lorg/json/JSONException;
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 620
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 621
    monitor-exit p0

    return-void

    .line 620
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
